package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.ZsyyParkTicket;
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
import com.ruoyi.common.core.mybatisplus.cache.MybatisPlusRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 月票管理Mapper接口
 *
 * @author wangghua
 * @date 2021-07-14
 */
// 如使需切换数据源 请勿使用缓存 会造成数据不一致现象
//@CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class)
public interface ZsyyParkTicketMapper extends BaseMapperPlus<ZsyyParkTicket> {

    ZsyyParkTicket getByMqttUUID(@Param("uuid") String uuid, @Param("mqttCarId") Integer mqttCarId);

	void deleteByMqttUUID(@Param("uuid")String uuid, @Param("mqttCarId")Integer mqttCarId);

    List<ZsyyParkTicket> getParkTicketByCarNo(@Param("carNo")String carNo);
}
